package com.cicigodd.brick.plug.security.resource.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.cicigodd.brick.plug.common.response.PageResult;
import com.cicigodd.brick.plug.security.resource.api.SysResourceServiceApi;
import com.cicigodd.brick.plug.security.resource.entity.SysResource;
import com.cicigodd.brick.plug.security.resource.request.*;
import com.cicigodd.brick.plug.security.resource.response.SysResourceDetailResponse;
import com.cicigodd.brick.plug.security.resource.response.SysResourceListResponse;

import java.util.List;

/**
 * 系统资源
 *
 * @author cicigodd
 * @date 2022/11/15 15:46:30
 */
public interface SysResourceService extends IService<SysResource>, SysResourceServiceApi {

    /**
     * 添加
     *
     */
    void add(SysResourceAddRequest sysResourceAddRequest);

    /**
     * 删除
     *
     */
    void delete(SysResourceDeleteRequest sysResourceDeleteRequest);

    /**
     * 编辑
     *
     */
    void edit(SysResourceEditRequest sysResourceEditRequest);

    /**
     * 详情
     *
     */
    SysResourceDetailResponse detail(SysResourceDetailRequest sysResourceDetailRequest);

    /**
     * 分页列表
     *
     */
    PageResult<SysResourceListResponse> list(SysResourceListRequest sysResourceListRequest);

}